import java.util.Scanner;
public class Main {
    public static void main(String[] args) {

    }
    public static void main6(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            int i = 0, j = 0, k = 0;
            int line = in.nextInt();
            for ( i = 0; i < line; i++) {
                for (j = 0; j < i; j++) {
                    System.out.print(" ");
                }
                for ( k = 0 + i; k <line; k++) {
                    System.out.print("* ");
                }
                System.out.println();
            }
        }
    }
    public static void main5(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            int i = 0, j = 0, k = 0;
            int c = in.nextInt();
            for (i = 0; i < c; i++) {
                for (j = c - i; j > 1; j--) {
                    System.out.print(" ");
                }
                for (k = 0; k <= i; k++) {
                    System.out.print("* ");
                }
                System.out.println();
            }
        }
    }
    public static void main4(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            int i = 0,j = 0;
            int n = in.nextInt();
            for (i = 0; i < n; i++) {
                //先打印空格
                for (j = 0; j < n; j++) {
                    if (i + j < n - 1) {
                        System.out.print("  ");
                    }
                    else {
                        System.out.print("* ");
                    }
                }
                System.out.println();
            }
        }
    }
    public static void main3(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            int i = 0,j = 0;
            int a = in.nextInt();
            for (i = 0; i < a; i++) {
                for (j = a; j > i; j--) {
                    System.out.print("* ");
                }
                System.out.println();
            }
        }
    }
    public static void main2(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            int i = 0,j = 0;
            int a = in.nextInt();
            for (i = 1; i <= a; i++) {
                for (j = 0; j < i; j++) {
                    System.out.print("* ");
                }
                System.out.println();
            }
        }
    }
    public static void main1(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            int i = 0,j = 0;
            int a = in.nextInt();
            for (i = 0; i < a; i++) {
                for (j = 0; j < a; j++) {
                    System.out.print("* ");
                }
                if (j % a == 0) {
                    System.out.println();
                }
            }
        }
    }
}